fix(miner): drop stale ProcessEnv casts on resolveReplaySnapshotDbPath - #8768
Conversation
The resolver already types env as Record<string, string | undefined>; remove the outdated not-yet-migrated comments and casts at both migrate-cli and status call sites. Add a migrate open-adapter regression covering the uncasted path. Closes JSONbored#8642
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8768 +/- ##
==========================================
- Coverage 93.80% 90.63% -3.17%
==========================================
Files 797 98 -699
Lines 79493 22700 -56793
Branches 24085 3962 -20123
==========================================
- Hits 74567 20575 -53992
+ Misses 3555 1945 -1610
+ Partials 1371 180 -1191
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 03:33:04 UTC
Review summary Nits — 3 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
not yet migratedcomments andNodeJS.ProcessEnvcasts aroundresolveReplaySnapshotDbPathinmigrate-cli.tsandstatus.ts.Record<string, string | undefined>.test/unit/miner-migrate-cli.test.ts) so CI'sbackendpath filter runsBuild enginebefore typecheck (miner-lib-only PRs otherwise skip that step and failtsc).Closes #8642
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpx tsc -p packages/loopover-miner/tsconfig.json --noEmit(exit 0)npx vitest run test/unit/miner-migrate-cli.test.ts -t "#8642"(1 passed)If any required check was skipped, explain why:
Build engine packagewhile still running typecheck.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
Not applicable.
Notes